import request from '@/utils/request'

// 查询红利曲线设置
export function getDivIrCrvSetList(query) {
  return request({
    url: '/marketdata/divIrCurveStrip/queryDivIrCurveByPage.action',
    method: 'get',
    params: query
  })
}

// 新增利率曲线设置
export function addDivCurve(data) {
  return request({
    url: '/marketdata/divIrCurveStrip/insertDivIrCurve.action',
    method: 'post',
    params: data
  })
}

// 修改利率曲线设置
export function uptDivCurve(data) {
  return request({
    url: '/marketdata/divIrCurveStrip/updateDivIrCurve.action',
    method: 'put',
    params: data
  })
}

// 删除利率曲线设置
export function delDivCurve(data) {
  return request({
    url: '/marketdata/divIrCurveStrip/deleteDivIrCurve.action',
    method: 'put',
    params: data
  })
}
//查询当前登录用户的有权限的部门下的权限情况
export function listAllocateUser(query){
  return request({
    url: '/system/user/listDivCurveAllocateUser',
    method: 'get',
    params: query
  })
}

//授权
export function updateUserAuthority(params) {
  return request({
    url: '/marketdata/divIrCurveStrip/updateCurveUserAuthority.action',
    method: 'post',
    data: params
  })
}

